<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2018/5/15
  Time: 15:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>使用html实现</h1>
<p>1</p>
<p>2</p>
<p>...</p>
<p>100</p>

<h1>使用Java实现</h1>
<%
    for (int i = 1;i < 10;i++) {
        out.write("<p>" + i + "<p>");
    }
%>

<h1>JSTL标签实现</h1>
<c:forEach var="i" begin="1" end="10">
    <p>${i}</p>
</c:forEach>


</body>
</html>
